 {include file="public/header" /}
 <style type="text/css">.gray-bg{ background: #fff; }.wrapper{ padding:0px;}.asdh5 h5{border-top: 1px dotted #ccc; padding-top: 20px;margin-top: 20px;}#hidetent{ display: none; }</style>
 <body class="gray-bg">
 <div class="wrapper wrapper-content">
    <div class="row">
        <form class="form-horizontal" method="post">
            <div class="col-sm-12">
                <div class="ibox-content">
                    <div class="form-group">
                        <label class="col-sm-2 control-label">名称：</label>
                        <div class="col-sm-9">
                            <input name="name" type="text"  class="form-control" value="{present name='name'}{$name.name}{/present}">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-2 control-label">价格：</label>
                        <div class="col-sm-9">
                            <input name="price" type="text"  class="form-control" value="{present name='name'}{$name.price}{/present}">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-2 control-label">有效期：</label>
                        <div class="col-sm-9">
                            <input name="keep" type="number"  class="form-control" value="{present name='name'}{$name.keep}{/present}">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-2 control-label">单位：</label>
                        <div class="col-sm-9">
                            <select class="form-control" name="times">
                                <option value="day" {present name="name"}{eq name="name.times" value='day'}selected="selected"{/eq}{/present}>day</option>
                                <option value="month" {present name="name"}{eq name="name.times" value='month'}selected="selected"{/eq}{/present}>month</option>
                                <option value="year" {present name="name"}{eq name="name.times" value='year'}selected="selected"{/eq}{/present}>year</option>
                            </select>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-2 control-label">描述：</label>
                        <div class="col-sm-9">
                            <input name="description" type="text"  class="form-control" value="{present name="name"}{$name.description}{/present}">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-2 control-label">排序：</label>
                        <div class="col-sm-9">
                            <input name="sort" type="text"  class="form-control" value="{present name="name"}{$name.sort}{else /}0{/present}">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-2 control-label">推荐：</label>
                        <div class="col-sm-9">
                            <select class="form-control" name="hot">
                                <option value="0" {present name="name"}{if condition="$name.hot=='0'"}selected="selected"{/if}{/present}>否</option>
                                <option value="1" {present name="name"}{if condition="$name.hot=='1'"}selected="selected"{/if}{/present}>是</option>
                            </select>
                        </div>
                    </div>
                </div>
            </div>
        </form>
    </div>
</div>
{include file="public/footer" /}
{load href="__PLUGINS__iCheck/icheck.min.js"}
{load href="__PLUGINS__iCheck/custom.css"}
<script type="text/javascript">
$(document).ready(function(){
     $(".i-checks").iCheck({
        checkboxClass: "icheckbox_square-green",
        radioClass: "iradio_square-green",
    })
})
</script>
{include file="public/bottom" /}

<script type="text/javascript">
// $(document).ready(function(){
//     $(".i-checks").iCheck({
//         checkboxClass: "icheckbox_square-green",
//         radioClass: "iradio_square-green",
//     })
// });
function msg(){
    layer.msg("上传成功")
}
</script>
 
